import Vue from 'vue'
import App from './App.vue'
import router from './router/router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);//全局引入
import './assets/reset.css'
import axios from 'axios'
//自己全局封装了axios方法插件，可以全局使用$myhttp
import myaxios from './assets/myaxios/myaxios.js'
Vue.use(myaxios);

//不把axios封装成插件也可以，就按下面的写
// let  axios_obj=axios.create({  //自定义一个axios对象。设置baseURL，和请求头headers
//         baseURL:'http://localhost:8888/api/private/v1/',
//         headers:{Authorization:window.localStorage.getItem('token')}
//     });
//     Vue.prototype.$myhttp=axios_obj



Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
